<%@include file="../../_header.jsp"%>

<h1 id="title">Alterar Cliente</h1>
<hr />

<form action="RotuloServlet" method="post"><input type="hidden"
	name="comando" value="alterar" /> <input type="hidden" name="idRotulo"
	value="<c:out value='${rotulo.getId()}' />" />

<table>
	<tr>
		<td>G&ecirc;nero:</td>
		<td><input type="radio" name="beverage_type" id='cerveja'
			value="Cerveja"
			<c:if test="${rotulo.getGenero().getNomeGenero() == 'Cerveja'}"> checked="checked" </c:if>>Cerveja

		<input type="radio" name="beverage_type" id='chope' value="Chope"
			<c:if test="${rotulo.getGenero().getNomeGenero() == 'Chope'}"> checked="checked" </c:if>>Chope
		</td>
	</tr>

	<tr>
		<td>Marca:</td>
		<td id="direita"><input type="text" name="brand" id="brand"
			value="<c:out value="${rotulo.marca}"></c:out>" /></td>
	</tr>

	<tr>
		<td>R&oacute;tulo:</td>
		<td id="direita"><input type="text" name="label" id='label'
			value="<c:out value="${rotulo.getNome()}"></c:out>" /></td>
	</tr>

	<tr>
		<td>Tipo:</td>
		<td id="direita"><select name="beverage_kind" id="beverage_kind">
			<c:forEach var="item" items="${listaTipo}">
				<option value="<c:out value='${item.codTipo}'/>"
					<c:if test="${rotulo.getTipo().getCodTipo() == item.codTipo}"> selected="selected" </c:if>>
				<c:out value="${item.nome}"></c:out></option>
			</c:forEach>
		</select></td>
	</tr>

	<tr>
		<td>Faixa de temperatura:</td>
		<td id="direita"><select name="temp_range" id="temp_range">
			<c:forEach var="item" items="${listaFaixaTemp}">
				<option value="<c:out value='${item.codTemp}'/>"
					<c:if test="${rotulo.getTemp().getCodTemp() == item.codTemp}"> selected="selected" </c:if>>
				<c:out value="${item.getFaixaTemp()}"></c:out></option>
			</c:forEach>
		</select></td>
	</tr>

	<tr>
		<td>Teor Alco&oacute;lico (%):</td>
		<td id="direita"><input type="text" name="alcoholic_strength"
			id='alcoholic_strength'
			value="<c:out value="${rotulo.teor}"></c:out>" /></td>
	</tr>

	<tr>
		<td>Pa&iacute;s de origem:</td>
		<td id="direita"><select name="country" id="country">
			<c:forEach var="item" items="${listaPais}">
				<option value="<c:out value='${item.codPais}'/>"
					<c:if test="${rotulo.getPais().getCodPais() == item.codPais}"> selected="selected" </c:if>>
				<c:out value="${item.nome}"></c:out></option>
			</c:forEach>
		</select></td>
	</tr>

	<tr>
		<td>* Data de Validade:</td>
		<td id="direita"><input type="text" name="expire_date"
			id="expire_date"
			value="<c:out value="${rotulo.getDataFormatada()}"></c:out>" /></td>
	</tr>

</table>

<br />

<input type="reset" value="Limpar" /> <input type="submit"
	value="Alterar" onclick="verify_include_fields()" /></form>

<%@include file="../../_footer.jsp"%>




